<?php
/* @var $this PurchaseOrderHeaderController */
/* @var $model PurchaseOrderHeader */

$this->breadcrumbs=array(
	'Purchase Order Headers'=>array('index'),
	$model->purchase_no=>array('view','id'=>$model->purchase_no),
	'Update',
);

$this->menu=array(
	array('label'=>'List Purchase Order', 'url'=>array('index')),
	array('label'=>'Create Purchase Order', 'url'=>array('create')),
	array('label'=>'View Purchase Order', 'url'=>array('view', 'id'=>$model->purchase_no)),
	array('label'=>'Back','url'=>'#','linkOptions'=>array('onclick'=>'js:history.go(-1);')),
);

Yii::app()->clientScript->registerScript('search', "
	$( document ).ready(function() {

	  var x= $('#quo_no').val();
	  $('#quotation_no').combogrid('setValue',x);
	  
	  if(x!='')
	  	$('#quotation_no').combogrid('disable');

	  //$('#quotation_no').combogrid('setValue', $('#quo_no').val());
	});
	
	$( '#submitBtn' ).click(function(){
		$('#quo_no').val( $('#quotation_no').combogrid('getValue'));
	});

	
");

?>

<h1>Update PurchaseOrderHeader <?php echo $model->purchase_no; ?></h1>

<?php $this->renderPartial('_form', array('model'=>$model,'purNo'=>$purNo,'vendorLabel'=>$vendorLabel)); ?>